<?php

// Variables for checking menu items for user level
define("EW_SESSION_MENU_AR_USER_LEVEL_PRIV", "project1_arUserLevelPriv", TRUE); // User Level Privilege Array

// Restore user level privilege
if (is_array(@$_SESSION[EW_SESSION_MENU_AR_USER_LEVEL_PRIV])) {
	$arMenuUserLevelPriv = $_SESSION[EW_SESSION_MENU_AR_USER_LEVEL_PRIV];
}

// Check if menu item is allowed for current user level
function AllowListMenu($TableName) {
	global $arMenuUserLevelPriv;
	if (IsLoggedIn()) {
		if (strval(CurrentUserLevel()) == "-1") {
			return TRUE;
		} else {
			if (is_array($arMenuUserLevelPriv)) {
				foreach ($arMenuUserLevelPriv as $row) {
					if (strval($row[0]) == strval($TableName) &&
						strval($row[1]) == strval(CurrentUserLevel())) {
						$priv = $row[2];
						if (is_null($priv)) $priv = 0;
						if (!is_numeric($priv)) $priv = 0;
						$priv = intval($priv);
						return ($priv & 8);
					}
				}
			}
			return FALSE;
		}
	} else {
		return FALSE;
	}
}
?>
<html>
<head>
	<title>OsJobber Demo</title>
<?php if (@$sExport == "" || @$sExport == "html") { ?>
<link href="project1.css" rel="stylesheet" type="text/css" />
<?php } ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="PHPMaker v5.0.0.2" />
</head>
<body>
<script type="text/javascript">
<!--
var EW_DATE_SEPARATOR; // Default date separator
EW_DATE_SEPARATOR = "/";
if (EW_DATE_SEPARATOR == '') EW_DATE_SEPARATOR = '/';
EW_UPLOAD_ALLOWED_FILE_EXT = "doc,pdf,wps,txt,rtf,odt,sxw"; // Allowed upload file extension
var EW_FIELD_SEP = ', '; // Default field separator
var EW_TABLE_CLASSNAME = "ewTable"; // Note: changed the class name as needed

// Ajax settings
EW_LOOKUP_FILE_NAME = "osj-ewlookup50.php"; // lookup file name
EW_ADD_OPTION_FILE_NAME = "osj-ewaddopt50.php"; // add option file name

// Auto suggest settings
var EW_AST_SELECT_LIST_ITEM = 0;
var EW_AST_TEXT_BOX_ID;
var EW_AST_CANCEL_SUBMIT;
var EW_AST_OLD_TEXT_BOX_VALUE = "";
var EW_AST_MAX_NEW_VALUE_LENGTH = 5; // Only get data if value length <= this setting

// Multipage settings
var ew_PageIndex = 0;
var ew_MaxPageIndex = 0;
var ew_MinPageIndex = 0;
var ew_MultiPageElements = new Array();

//-->
</script>
<script type="text/javascript" src="ewp50.js"></script>
<script type="text/javascript" src="osj-userfn50.js"></script>
<?php if (@$sExport == "") { ?>
<script language="JavaScript" type="text/javascript">
<!--

// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js");
//-->

</script>
	<!-- header (begin) -->
<div id="header">
	<a href="/" id="logo"></a>
</div>
	<!-- header (end) -->
			<!-- content (begin) -->
<!-- Three column layout courtesy of : http://matthewjamestaylor.com/blog/perfect-3-column.htm : Thank you much! -->
<div class="colmask threecol">
    <div class="colmid">
		<div class="colleft">
			<div class="col1">
		<!-- main (middle) content (begin) -->	
<h1 class="phpmaker">OsJobber Demo</h1>
<?php } ?>
